package com.lgl.dao;

import com.lgl.pojo.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface IUserDao extends JpaRepository<AuthCode, Integer>, JpaSpecificationExecutor<AuthCode> {
    List<AuthCode> findByEmail(String email);
    List<AuthCode> findByCode(String code);
}
